package com.peanut.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.peanut.domain.po.TabSpecInfoPO;
import com.peanut.mapper.TabSpecInfoMapper;
import com.peanut.service.TabSpecInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TabSpecInfoServiceImpl extends ServiceImpl<TabSpecInfoMapper, TabSpecInfoPO>
        implements TabSpecInfoService {

    @Resource
    private TabSpecInfoMapper specInfoMapper;

    @Override
    public List<TabSpecInfoPO> selectById(Long specId) {
        return specInfoMapper.selectList(new QueryWrapper<TabSpecInfoPO>().eq("spec_id",specId));
    }
}
